import request from '@/utils/request'

// 查询投稿信息列表
export function listTgrecord(query) {
  return request({
    url: '/business/tgrecord/list',
    method: 'get',
    params: query
  })
}

// 查询投稿信息详细
export function getTgrecord(id) {
  return request({
    url: '/business/tgrecord/' + id,
    method: 'get'
  })
}

// 新增投稿信息
export function addTgrecord(data) {
  return request({
    url: '/business/tgrecord',
    method: 'post',
    data: data
  })
}

// 修改投稿信息
export function updateTgrecord(data) {
  return request({
    url: '/business/tgrecord',
    method: 'put',
    data: data
  })
}

// 删除投稿信息
export function delTgrecord(id) {
  return request({
    url: '/business/tgrecord/' + id,
    method: 'delete'
  })
}
